package com.taptech.doufu.util;

import android.content.Context;
import com.umeng.analytics.MobclickAgent;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by lsy on 2015/8/20.
 */
public class TMAnalysis
{
    static public void event(Context context , String event , Map<String , String > map){
        MobclickAgent.onEvent(context, event, map);
    }

    static public void event(Context context, String event, String key, String value)
    {

        Map<String, String> map = null;
        if (key != null && value != null)
        {
            map = new HashMap<>();
            map.put(key, value);
        }
        MobclickAgent.onEvent(context, event, map);
    }

    static public void event(Context context, String event)
    {
        MobclickAgent.onEvent(context, event);
    }
}
